lcd: introduce lcd_set_cmap
authorNikita Kiryanov <[email protected]>
Tue, 3 Feb 2015 11:32:27 +0000 (13:32 +0200)
committerAnatolij Gustschin <[email protected]>
Tue, 10 Feb 2015 12:29:02 +0000 (13:29 +0100)
commit0b29a8969e918d6c09d0798d381cf74594bdf3a0
treec25eed4c5cd29c700a12a1029a07fc44d93b91ae
parent2306457c4534d5cbadb834a2a185db3ef38e12c8
lcd: introduce lcd_set_cmap

Reduce the lcd_display_bitmap #ifdef complexity by extracting Atmel-specific
code for setting cmap for bitmap images into a new function lcd_set_cmap().
A default version is implemented with the remainder of the code.

Signed-off-by: Nikita Kiryanov <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Bo Shen <[email protected]>
Tested-by: Josh Wu <[email protected]>
Cc: Bo Shen <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Anatolij Gustschin <[email protected]>
common/lcd.c
drivers/video/atmel_lcdfb.c